const fs = require("fs");

const files = fs.readdirSync("./");
files.forEach((item) => {
  let [num, name] = item.split("_");

  if (Number(num) < 10) {
    num = num.padStart(2, 0);
  }

  let newName = num + "_" + name;

  fs.renameSync(`${item}`, `${newName}`);
});
